<%@page import="java.util.List"%>
<%@page import="soen343.domain.MultipleChoiceQuestion"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%
MultipleChoiceQuestion q = (MultipleChoiceQuestion)request.getAttribute("question");
List<String> choices = q.getChoices();
String name = q.getName();
int count = 0;

for(String choice : choices) { 
	String id = name + count; %>
	<input type="radio" name="<%=name %>" id="<%=id %>" value="<%=count %>" />
	<label for="<%=id %>"><%=choice %></label><br /><%
	count++;
} %>